Mobile terminal with unlock function

ABSTRACT

A mobile terminal with unlock function is provided. The mobile terminal includes: a central processing unit, a trigger unit, a response unit and an unlock unit, wherein: the central processing unit is configured to control the trigger unit, the response unit, and the unlock unit; the trigger unit is configured to obtain a trigger signal for unlock, and generate a first password according to the trigger signal; the response unit is configured to generate a corresponding unlock signal according to a preset correspondence between the unlock signal and the first password and with reference to the first password, and send the corresponding unlock signal; the unlock unit is configured to obtain an unlock password that is obtained by means of parsing by a user according to the unlock signal; match the unlock password with the first password; determine whether the unlock password is consistent with the first password; and if a determining result is yes, unlock a password lock; or if a determining result is no, instruct the trigger unit to obtain a trigger signal for unlock again.

CROSS REFERENCE TO RELATED APPLICATION

This application is a continuation of U.S. patent application Ser. No.16/594,141, filed on Oct. 7, 2019, which is a continuation of U.S.patent application Ser. No. 16/516,478, filed on Jul. 19, 2019, which isa continuation of U.S. patent application Ser. No. 16/280,088, filed onFeb. 20, 2019, which is a continuation of U.S. patent application Ser.No. 16/133,772, filed on Sep. 18, 2018, which is a continuation of U.S.patent application Ser. No. 15/990,922, filed on May 29, 2018, whichclaims priority to Chinese Patent Application No. 201810402847.0, filedon Apr. 28, 2018, all of which are hereby incorporated by reference intheir entireties.

FIELD OF THE INVENTION

The present invention relates to the field of security technologies, andin particular, to a mobile terminal with unlock function.

BACKGROUND OF THE INVENTION

A mobile phone unlock function is a basic function of prior-art mobilephone applications. The mobile phone unlock function includes multipleforms of unlock modes, which not only provide diversified experienceeffects for users, but also protect privacy of mobile phone users andmobile phone security effectively.

In the prior art, modes of locking a mobile phone screen are mainlylockout modes such as pattern lockout (a nine palace map in an Androidmobile phone), PIN lockout, character password lockout, fingerprintrecognition, and face recognition. Unlock methods used in the prior artare mainly: 1. Drawing an unlock pattern according to a pattern of amobile phone screen. 2. Directly entering a PIN or a character password.3. Using unlock methods such as a fingerprint recognition or facerecognition mode. In the prior art, for pattern unlock, PIN unlock, andcharacter password unlock, a password plaintext entered by a user isprone to be seen by others, and then the password set by the user areremembered and cracked by others, or the password set by the user iseasily cracked by acquaintances or people who are proficient inpsychology according to user's psychological habits.

For a mobile phone unlock method in the prior art, unlock is performedonly by directly entering a password that is set by a user. In thiscase, only a relatively single unlock mode is available, and a passwordis easily cracked. Consequently, user privacy security and mobile phonesecurity cannot be better ensured.

SUMMARY OF THE INVENTION

An embodiment of the present invention provides a mobile terminal unlockmethod, and the method includes:

obtaining a trigger signal for unlock, and generating a first passwordaccording to the trigger signal;

generating a corresponding unlock signal according to a presetcorrespondence between the unlock signal and the first password and withreference to the first password, and sending the corresponding unlocksignal;

obtaining an unlock password that is obtained by means of parsing by auser according to the unlock signal; matching the unlock password withthe first password; determining whether the unlock password isconsistent with the first password; and if a determining result is yes,unlocking a password lock; or if a determining result is no, obtaining atrigger signal for unlock again.

In the mobile terminal unlock method described in this embodiment of thepresent invention, a first password may be generated according to atrigger signal for unlock, an unlock signal is generated according tothe first password, an unlock password that is obtained by means ofparsing by a user according to the unlock signal is obtained, match isperformed to verify whether the unlock password is correct, and if theunlock password is correct, a password lock is unlocked, or if theunlock password is incorrect, unlock is performed again. The mobileterminal unlock method described in this embodiment improves mobileterminal user experience effect and mobile terminal security, and betterprotects privacy security of a mobile terminal user.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic flowchart of Embodiment 1 of a mobile terminalunlock method according to an embodiment of the present invention;

FIG. 2 is a schematic flowchart of Embodiment 2 of a mobile terminalunlock method according to an embodiment of the present invention;

FIG. 3 is a schematic flowchart of Embodiment 3 of a mobile terminalunlock method according to an embodiment of the present invention;

FIG. 4 is a schematic structural diagram of Embodiment 4 of a mobileterminal according to an embodiment of the present invention;

FIG. 5 is a schematic structural diagram of Embodiment 5 of a mobileterminal according to an embodiment of the present invention;

FIG. 6 is a schematic structural diagram of an embodiment of an externalunlock apparatus according to an embodiment of the present invention;and

FIG. 7 is a schematic structural diagram of an embodiment of an unlocksystem according to an embodiment of the present invention.

DETAILED DESCRIPTION OF THE EMBODIMENTS

Mobile terminal types provided in embodiments of the present inventioninclude mobile terminals with unlock functions, such as a mobile phone,a walkman, a tablet computer, a notebook computer, and a PDA. An unlocksignal described in the embodiments of the present invention includes ahuman body sensing signal such as vibration, sounds, pictures, andscreen luminance. The described unlock signal may be an unlock signal ina single form of a sensing signal, or may be an unlock signal inmultiple combination forms of multiple types of sensing signals. Thefollowing describes, with reference to the accompany drawings, theembodiments of the present invention by using an example in which amobile terminal is a mobile phone, and an unlock signal is a vibrationsensing signal. Referring to FIG. 1, FIG. 1 is a schematic flowchart ofEmbodiment 1 of a mobile terminal unlock method according to anembodiment of the present invention. The mobile terminal unlock methodin this embodiment includes the following steps:

S101: Obtain a trigger signal for unlock, and generate a first passwordaccording to the trigger signal.

In specific implementation, the unlock method described in thisembodiment not only can be applied to unlock of a mobile phone screen,and but also can be applied to unlock functions of mobile phoneapplications, such as unlock of an encrypted file in a mobile phone. Thefollowing details the unlock method described in this embodiment byusing an example of unlocking a mobile phone screen. The trigger signalfor unlock in this embodiment may be a trigger signal that is sent bytouching a mobile phone screen by a mobile phone user when the mobilephone screen of a touchscreen mobile phone is in a lockout state, may bea trigger signal that is sent by pressing an unlock button of a mobilephone by a mobile phone user when a mobile phone screen of thenon-touchscreen mobile phone is in a lockout state, or may be a triggersignal sent in another form for triggering unlock of a mobile phonescreen. The foregoing trigger signal sending manners are merely examplesrather than exhaustive descriptions, and this embodiment includes but isnot limited to the foregoing trigger signal sending manners. Afterobtaining a trigger signal for unlock, a mobile phone randomly generatesa password. A first password is generated after the mobile phone obtainsa trigger signal, and the generated first password is an instant unlockpassword of the mobile phone. A password lock can be unlocked only whenan unlock password entered by a user is consistent with the firstpassword. A different first password may be generated each time after amobile phone obtains a trigger signal, that is, an unlock password ofthe mobile phone is generated randomly and changes constantly. In thisunlock method, a first password serves as an unlock password of a mobilephone, and a mobile phone password can be effectively protected frombeing identified and cracked, so that privacy security of a mobile phoneuser is better protected. For example, when a screen of a touchscreenmobile phone of a mobile phone user is in a lockout state, if the userwants to make a phone call, the user needs to unlock a password lock ofthe mobile phone screen, and enter a mobile phone screen to make a phonecall. In this case, if the mobile phone user touches the mobile phonescreen, the mobile phone obtains a trigger signal for unlock. Afterobtaining the trigger signal for unlock, the mobile phone generates afirst password, for example, “210”. The first password “210” is anunlock password of the mobile phone at this time. If the user wants tounlock the password lock of the mobile phone screen, “210” needs to beentered for unlock. If the mobile phone user does not want to make aphone call at the moment and does not enter a password to unlock themobile phone screen, the user needs to touch the mobile phone screenagain if the user wants to unlock the mobile phone screen next time.After obtaining a trigger signal, the mobile phone generates a new firstpassword, for example, “220”. “220” is an unlock password of the mobilephone at this time. A password lock of the mobile phone screen can beunlocked only after the mobile phone user enters “220”.

S102: Generate a corresponding unlock signal according to a presetcorrespondence between the unlock signal and the first password and withreference to the first password, and send the corresponding unlocksignal.

In specific implementation, the mobile phone user may preset aone-to-one correspondence between the unlock signal and the firstpassword according to user preference, and store the correspondence tothe mobile phone. After generating the first password, the mobile phoneresponds according to the correspondence, preset by the user, betweenthe unlock signal and the first password, and sends the correspondingunlock signal. In specific implementation, the first password maycontain a character such as a digit, a letter, or a symbol. The firstpassword may be in multiple combination forms, for example, may be oneor more digits, one or more letters, or may be a combination of a digitand a letter, a combination of a digit and a symbol, or a combination ofa letter and a symbol. The mobile phone user may preset a vibration modecorresponding to the digit, letter or symbol, including a vibration modesuch as a vibration frequency, a vibration intensity, vibrationduration, or a vibration combination form. The first password thatcontains these characters corresponds to a corresponding vibration mode.If the mobile phone obtains the first password, the mobile phone maygenerate a corresponding vibration signal according to thecorrespondence, preset by the mobile phone user, between the firstpassword and a mobile phone vibration mode. The mobile phone user maydetermine and parse out a corresponding password according to thevibration signal of the mobile phone to obtain the unlock password ofthe mobile phone at this time. For example, the following Table 1 listscorrespondences that can be preset by the mobile phone user and that arebetween a composition character of a first password of the mobile phoneand a mobile phone vibration mode:

TABLE 1 Character Vibration mode 0 Weak vibration for 200 ms 1 Weakvibration for 100 ms and strong vibration for 100 ms 2 Strong vibrationfor 200 ms and weak vibration for 100 ms . . . . . .

The correspondences, listed in Table 1, between a composition characterof a first password of the mobile phone and a mobile phone vibrationmode are merely some examples rather than exhaustive descriptions, andthis embodiment includes but is not limited to the correspondences,listed in the foregoing table, between a composition character of afirst password of the mobile phone and a mobile phone vibration mode.The mobile phone user may set different correspondences according touser preference.

Correspondences between a first password for unlocking the mobile phoneand a mobile phone vibration mode can be obtained according to Table 1,as listed below in Table 2:

TABLE 2 First password Vibration mode 01 Weak vibration for 200 ms, andweak vibration for 100 ms and strong vibration for 100 ms 212 Strongvibration for 200 ms and weak vibration for 100 ms, weak vibration for100 ms and strong vibration for 100 ms, and strong vibration for 200 msand weak vibration for 100 ms 220 Strong vibration for 200 ms and weakvibration for 100 ms, strong vibration for 200 ms and weak vibration for100 ms, and weak vibration for 200 ms . . . . . .

The correspondences, listed in Table 2, between a first password forunlocking the mobile phone and a mobile phone vibration mode are merelysome examples rather than exhaustive descriptions, and this embodimentincludes but is not limited to the correspondences, listed in theforegoing table, between a first password for unlocking the mobile phoneand a mobile phone vibration mode. It may be learnt from Table 2 that,when a first password generated by the mobile phone is “220”, the mobilephone may send a corresponding vibration signal “strong vibration for200 ms and weak vibration for 100 ms, strong vibration for 200 ms andweak vibration for 100 ms, and weak vibration for 200 ms” according tothe correspondences listed in Table 2. According to the mobile phonevibration signal felt by a hand of the user, the user may determine thefirst password of the mobile phone, that is, the unlock password of themobile phone at this time. Alternatively, the user may set a timeinterval for mobile phone vibration according to user preference orrecognition habits, so as to better determine and parse out the unlockpassword of the mobile phone. For example, the user may set a vibrationtime interval corresponding to characters that form the first passwordto 50 ms for a mobile phone vibration mode; when the first passwordgenerated by the mobile phone is “220”, the mobile phone sends acorresponding vibration signal according to the correspondences listedin Table 2. The mobile phone first sends a vibration signal “strongvibration for 200 ms and weak vibration for 100 ms”; after an intervalof 50 ms, the mobile phone sends a vibration signal “strong vibrationfor 200 ms and weak vibration for 100 ms”; and after an interval of 50ms, the mobile phone sends a vibration signal “weak vibration for 200ms”. That is, the mobile phone first vibrates strongly for 200 ms andweakly for 100 ms; after 50 ms, vibrates strongly for 200 ms and weaklyfor 100 ms again; and after 50 ms, vibrates weakly for 200 ms. Themobile phone user determines, according to the vibration signal felt bya hand, that the unlock password of the mobile phone at this time is“220”.

S103: Obtain an unlock password that is obtained by means of parsing bya user according to the unlock signal, and match the unlock passwordwith the first password.

S104: Determine whether the unlock password is consistent with the firstpassword, and if a determining result is yes, execute step S105, or if adetermining result is no, execute step S101.

S105: Unlock a password lock.

In step S103, the mobile phone user may determine and parse out theunlock password of the mobile phone according to the mobile phonevibration mode. After parsing out the unlock password of the mobilephone, the mobile phone user may enter the unlock password that isobtained by means of parsing to the mobile phone for unlock. Afterobtaining the unlock password that is obtained by the mobile phone userby means of parsing according to the unlock signal, the mobile phonematches the obtained unlock password with the first passwordautomatically generated by the mobile phone, and determines whether theunlock password entered by the mobile phone user is consistent with thefirst password automatically generated by the mobile phone. If theunlock password entered by the mobile phone user is consistent with thefirst password generated by the mobile phone, the password lock isunlocked. If the unlock password entered by the mobile phone user isinconsistent with the first password generated by the mobile phone, stepS101 is returned to obtain a trigger signal for unlock again andgenerate a new first password, and a new round of unlock processingstarts. The user may parse out a first password again, and enter anunlock password for unlock again. For example, the first passwordgenerated by the mobile phone for the first time is “220”, and themobile phone parses out and determines the password mistakenly andenters an unlock password “210”. The password “210” obtained by themobile phone is inconsistent with the first password “220” generated bythe mobile phone, and the mobile phone sends an entry error signal.After learning a password entry error, the mobile phone user touches themobile phone screen again. The mobile phone obtains a trigger signal forunlock again, generates a new first password “211”, and sends acorresponding unlock signal. The mobile phone user obtains, again bymeans of parsing according to the unlock signal sent by the mobilephone, the unlock password “211”, and enters the unlock password “211”.After obtaining the unlock password “211”, the mobile phone matches theunlock password with the first password. If the mobile phone determinesthat the unlock password is correct, the password lock of the screen isunlocked, and a standby screen of the mobile phone is displayed.

In the mobile terminal unlock method described in this embodiment of thepresent invention, a first password may be generated according to atrigger signal for unlock, an unlock signal is generated according tothe first password, an unlock password that is obtained by means ofparsing by a user according to the unlock signal is obtained, match isperformed to verify whether the unlock password is correct, and if theunlock password is correct, a password lock is unlocked, or if theunlock password is incorrect, unlock is performed again. The mobileterminal unlock method described in this embodiment improves mobileterminal user experience and mobile terminal security, has a wideapplication, and better protects privacy security of a mobile terminaluser.

Referring to FIG. 2, FIG. 2 is a schematic flowchart of Embodiment 2 ofa mobile terminal unlock method according to an embodiment of thepresent invention. The mobile terminal unlock method in this embodimentincludes the following steps:

S201: Obtain a trigger signal for unlock, and generate a first passwordaccording to the trigger signal.

In specific implementation, the unlock method described in thisembodiment not only can be applied to unlock of a mobile phone screen,and but also can be applied to unlock functions of mobile phoneapplications, such as unlock of an encrypted file in a mobile phone. Thefollowing details the unlock method described in this embodiment byusing an example of unlocking a mobile phone screen. The trigger signalfor unlock in this embodiment may be a trigger signal that is sent bytouching a mobile phone screen by a mobile phone user when the mobilephone screen of a touchscreen mobile phone is in a lockout state, may bea trigger signal that is sent by pressing an unlock button of a mobilephone by a mobile phone user when a mobile phone screen of thenon-touchscreen mobile phone is in a lockout state, or may be a triggersignal sent in another form for triggering unlock of a mobile phonescreen. The foregoing trigger signal sending manners are merely examplesrather than exhaustive descriptions, and this embodiment includes but isnot limited to the foregoing trigger signal sending manners. Afterobtaining a trigger signal for unlock, a mobile phone randomly generatesa password. A first password is generated after the mobile phone obtainsa trigger signal, and the generated first password is an instant unlockpassword of the mobile phone. A password lock can be unlocked only whenan unlock password entered by a user is consistent with the firstpassword. A different first password may be generated each time after amobile phone obtains a trigger signal, that is, an unlock password ofthe mobile phone is generated randomly and changes constantly. In thisunlock method, a first password serves as an unlock password of a mobilephone, and a mobile phone password can be effectively protected frombeing identified and cracked, so that privacy security of a mobile phoneuser is better protected. For example, when a screen of a touchscreenmobile phone of a mobile phone user is in a lockout state, if the userwants to make a phone call, the user needs to unlock a password lock ofthe mobile phone screen, and enter a mobile phone screen to make a phonecall. In this case, if the mobile phone user touches the mobile phonescreen, the mobile phone obtains a trigger signal for unlock. Afterobtaining the trigger signal for unlock, the mobile phone generates afirst password, for example, “210”. The first password “210” is anunlock password of the mobile phone at this time. If the user wants tounlock the password lock of the mobile phone screen, “210” needs to beentered for unlock. If the mobile phone user does not want to make aphone call at the moment and does not enter a password to unlock themobile phone screen, the user needs to touch the mobile phone screenagain if the user wants to unlock the mobile phone screen next time.After obtaining a trigger signal, the mobile phone generates a new firstpassword, for example, “220”. “220” is an unlock password of the mobilephone at this time. A password lock of the mobile phone screen can beunlocked only after the mobile phone user enters “220”.

S202: Generate a corresponding unlock signal according to a presetcorrespondence between the unlock signal and the first password and withreference to the first password, and send the corresponding unlocksignal.

In specific implementation, the mobile phone user may preset aone-to-one correspondence between the unlock signal and the firstpassword according to user preference, and store the correspondence tothe mobile phone. After generating the first password, the mobile phoneresponds according to the correspondence, preset by the user, betweenthe unlock signal and the first password, and sends the correspondingunlock signal. In specific implementation, the first password maycontain a character such as a digit, a letter, or a symbol. The firstpassword may be in multiple combination forms, for example, may be oneor more digits, one or more letters, or may be a combination of a digitand a letter, a combination of a digit and a symbol, or a combination ofa letter and a symbol. The mobile phone user may preset a vibration modecorresponding to the digit, letter or symbol, including a vibration modesuch as a vibration frequency, a vibration intensity, vibrationduration, or a vibration combination form. The first password thatcontains these characters corresponds to a corresponding vibration mode.If the mobile phone obtains the first password, the mobile phone maygenerate a corresponding vibration signal according to thecorrespondence, preset by the mobile phone user, between the firstpassword and a mobile phone vibration mode. The mobile phone user maydetermine and parse out a corresponding password according to thevibration signal of the mobile phone to obtain the unlock password ofthe mobile phone at this time. For example, the following Table 3 listscorrespondences that can be preset by the mobile phone user and that arebetween a composition character of a first password of the mobile phoneand a mobile phone vibration mode:

TABLE 3 Character Vibration mode 0 Weak vibration for 200 ms 1 Weakvibration for 100 ms and strong vibration for 100 ms 2 Strong vibrationfor 200 ms and weak vibration for 100 ms . . . . . .

The correspondences, listed in Table 3, between a composition characterof a first password of the mobile phone and a mobile phone vibrationmode are merely some examples rather than exhaustive descriptions, andthis embodiment includes but is not limited to the correspondences,listed in the foregoing table, between a composition character of afirst password of the mobile phone and a mobile phone vibration mode.The mobile phone user may set different correspondences according touser preference.

Correspondences between a first password for unlocking the mobile phoneand a mobile phone vibration mode can be obtained according to Table 3,as listed below in Table 4:

TABLE 4 First password Vibration mode 01 Weak vibration for 200 ms, andweak vibration for 100 ms and strong vibration for 100 ms 212 Strongvibration for 200 ms and weak vibration for 100 ms, weak vibration for100 ms and strong vibration for 100 ms, and strong vibration for 200 msand weak vibration for 100 ms 220 Strong vibration for 200 ms and weakvibration for 100 ms, strong vibration for 200 ms and weak vibration for100 ms, and weak vibration for 200 ms . . . . . .

The correspondences, listed in Table 4, between a first password forunlocking the mobile phone and a mobile phone vibration mode are merelysome examples rather than exhaustive descriptions, and this embodimentincludes but is not limited to the correspondences, listed in theforegoing table, between a first password for unlocking the mobile phoneand a mobile phone vibration mode. It may be learnt from Table 4 that,when a first password generated by the mobile phone is “220”, the mobilephone may send a corresponding vibration signal “strong vibration for200 ms and weak vibration for 100 ms, strong vibration for 200 ms andweak vibration for 100 ms, and weak vibration for 200 ms” according tothe correspondences listed in Table 4. According to the mobile phonevibration signal felt by a hand of the user, the user may determine thefirst password of the mobile phone, that is, the unlock password of themobile phone at this time. Alternatively, the user may set a timeinterval for mobile phone vibration according to user preference orrecognition habits, so as to better determine and parse out the unlockpassword of the mobile phone. For example, the user may set a vibrationtime interval corresponding to characters that form the first passwordto 50 ms for a mobile phone vibration mode; when the first passwordgenerated by the mobile phone is “220”, the mobile phone sends acorresponding vibration signal according to the correspondences listedin Table 4. The mobile phone first sends a vibration signal “strongvibration for 200 ms and weak vibration for 100 ms”; after an intervalof 50 ms, the mobile phone sends a vibration signal “strong vibrationfor 200 ms and weak vibration for 100 ms”; and after an interval of 50ms, the mobile phone sends a vibration signal “weak vibration for 200ms”. That is, the mobile phone first vibrates strongly for 200 ms andweakly for 100 ms; after 50 ms, vibrates strongly for 200 ms and weaklyfor 100 ms again; and after 50 ms, vibrates weakly for 200 ms. Themobile phone user determines, according to the vibration signal felt bya hand, that the unlock password of the mobile phone at this time is“220”.

S203: Obtain an unlock password that is obtained by means of parsing bya user according to the unlock signal, and match the unlock passwordwith the first password.

S204: Determine whether the unlock password is consistent with the firstpassword, and if a determining result is yes, execute step S205, or if adetermining result is no, execute step S206.

S205: Unlock a password lock.

S206: Determine whether a quantity of times of obtaining a triggersignal for unlock is less than a maximum quantity of unlock error times,and if a determining result is yes, execute step S201, or if adetermining result is no, execute step S207.

S207: Enable a global positioning system GPS, obtain positioning data ofa mobile terminal, send the positioning data to a mailbox bound to themobile terminal, and stop obtaining a trigger signal for unlock within aspecified time.

In step S203, the mobile phone user may determine and parse out theunlock password of the mobile phone according to the mobile phonevibration mode. After parsing out the unlock password of the mobilephone, the mobile phone user may enter the unlock password that isobtained by means of parsing to the mobile phone for unlock. Afterobtaining the unlock password that is obtained by the mobile phone userby means of parsing according to the unlock signal, the mobile phonematches the obtained unlock password with the first passwordautomatically generated by the mobile phone, and determines whether theunlock password entered by the mobile phone user is consistent with thefirst password automatically generated by the mobile phone. If theunlock password entered by the mobile phone user is consistent with thefirst password generated by the mobile phone, the password lock isunlocked. If the unlock password entered by the mobile phone user isinconsistent with the first password generated by the mobile phone, itis further determined whether the quantity of obtaining a trigger signalfor unlock is less than the maximum quantity of unlock error times. Ifthe quantity of obtaining a trigger signal for unlock is less than themaximum quantity of unlock error times, step S201 is returned to obtaina trigger signal for unlock again and generate a new first password, anda new round of unlock processing starts. The user may parse out a firstpassword again, and enter an unlock password for unlock again. If thequantity of obtaining a trigger signal for unlock is equal to or exceedsthe maximum quantity of unlock error times, that is, unlock performed bythe mobile phone user fails, the global positioning system GPS isenabled, the positioning data of the mobile phone is obtained, theobtained positioning data of the mobile phone is sent to the mailboxbound to the mobile phone, and a trigger signal for unlock is no longerobtained within a specified time. The maximum quantity of unlock errortimes is a total quantity of times that the mobile phone user is allowedto enter an incorrect password and that is preset by the mobile phoneuser, that is, a total quantity of consecutive times that the mobilephone user is allowed to enter an incorrect password. The specified timementioned in “a trigger signal for unlock is no longer obtained within aspecified time” is a time for which the mobile terminal is automaticallylocked after an unlock failure and that is preset by a mobile phoneuser, that is, duration for which the mobile phone is automaticallylocked after the mobile phone user fails to perform unlock successfullyfor the preset maximum quantity of unlock error times. Within thelockout time, the mobile phone no longer allows an unlock attempt by themobile phone user. Therefore, within the lockout time, the mobile phoneuser cannot unlock the screen to use the mobile phone. In specificimplementation, the mobile phone user may preset a maximum quantity ofunlock error times and a lockout time of the mobile phone according touser preference. The mobile phone user may further bind the mobile phoneof the user to a mailbox of the user. If unlock performed by the mobilephone user fails, the mobile phone sends the positioning data of themobile phone to the mailbox bound to the mobile phone. After obtaininginformation about the positioning data of the mobile phone from themailbox of the mobile phone user, the mobile phone user may track alocation of the mobile phone according to the information about thepositioning data. If the mobile phone is lost or stolen, a location ofthe mobile phone can be tracked according to the information about thepositioning data, to regain the lost mobile phone.

The following details a process of completing unlock of a mobile phonescreen by using a simple example, where such unlock is completed by amobile phone by matching an unlock password entered by a mobile phoneuser with a first password automatically generated by the mobile phone.For example, when a generated first password is “220” after a mobilephone obtains a trigger signal for unlock for the first time, a mobilephone user obtains an unlock password “220” by means of parsingaccording to an unlock signal sent by the mobile phone, and enter theunlock password “220” to the mobile phone for unlock. The mobile phonematches the unlock password entered by the mobile phone user with afirst password automatically generated by the mobile phone. If themobile phone determines that the unlock password is consistent with thefirst password, a password lock of a mobile phone screen is unlocked,and a standby screen of the mobile phone is displayed. If the mobilephone user parses out and determines the password mistakenly accordingto the unlock signal sent by the mobile phone and enters an unlockpassword “210”, the password “210” obtained by the mobile phone isinconsistent with the first password “220” generated by the mobilephone, and an entry error signal is sent. After learning a passwordentry error, the mobile phone user may touch the mobile phone screenagain. The mobile phone obtains a trigger signal for unlock again,generates a new first password “211”, and sends a corresponding unlocksignal. The mobile phone user obtains, again by means of parsingaccording to the unlock signal sent by the mobile phone, the unlockpassword “211”, and enters the unlock password “211”. After obtainingthe unlock password “211”, the mobile phone matches the unlock passwordwith the first password. If the mobile phone determines that the unlockpassword is correct, the password lock of the screen is unlocked, and astandby screen of the mobile phone is displayed. If the mobile phoneuser parses out and determines the password mistakenly and enters anincorrect password, the mobile phone user may touch the mobile phonescreen again, and perform unlock again. It is assumed that the maximumquantity of unlock error times preset by the mobile phone user is four,and the lockout time is one minute. If the mobile phone user mistakenlydetermines the password for four times and enters an incorrect passwordfor four times, the mobile phone is automatically locked for one minute,and the mobile phone user can continue to attempt to perform unlock onlyafter one minute.

In the mobile terminal unlock method described in this embodiment of thepresent invention, a first password may be generated according to atrigger signal for unlock, an unlock signal is generated according tothe first password, an unlock password that is obtained by means ofparsing by a user according to the unlock signal is obtained, match isperformed to verify whether the unlock password is correct, and if theunlock password is correct, a password lock is unlocked, or if theunlock password is incorrect, unlock is performed again. In addition,according to the unlock method described in this embodiment of thepresent invention, a location of a mobile phone can be tracked accordingto obtained positioning data of the mobile phone. The mobile terminalunlock method described in this embodiment improves a mobile terminaluser experience and mobile terminal security, has a wide application,and better protects privacy security of a mobile terminal user andmobile terminal security.

Referring to FIG. 3, FIG. 3 is a schematic flowchart of Embodiment 3 ofa mobile terminal unlock method according to an embodiment of thepresent invention. The mobile terminal unlock method in this embodimentincludes the following steps:

S301: A mobile terminal obtains a trigger signal for unlock, andgenerates a first password according to the trigger signal.

S302: The mobile terminal generates a corresponding unlock signalaccording to a preset correspondence between the unlock signal and thefirst password and with reference to the first password, and sends thecorresponding unlock signal.

S303: The mobile terminal obtains an unlock password that is obtained bymeans of parsing by a user according to the unlock signal, and matchesthe unlock password with the first password.

S304: The mobile terminal determines whether the unlock password isconsistent with the first password, and if a determining result is yes,executes step S305, or if a determining result is no, executes stepS306.

S305: The mobile terminal unlocks a password lock.

S306: The mobile terminal determines whether a quantity of times ofobtaining a trigger signal for unlock is less than a maximum quantity ofunlock error times, and if a determining result is yes, executes stepS301, or if a determining result is no, executes step S307.

S307: The mobile terminal prompts the user to use an external unlockapparatus to obtain a password.

S308: After the user connects the external unlock apparatus to themobile terminal as prompted, the external unlock apparatus obtains aninternational mobile equipment identity (IMEI) of the mobile terminal,and prompts the user to enter a six-place password.

S309: After the user enters a six-place password, the external unlockapparatus concatenates the international mobile equipment identity andthe six-place password into a twenty-one place verification code; andcontrasts the twenty-one place verification code with a presetverification code stored in the external unlock apparatus, and if thetwo are consistent, executes S3010, or if the two are inconsistent,executes S3011.

S3010: The external unlock apparatus obtains the unlock password of themobile terminal from the mobile terminal, and then executes S3012

S3011: Reject unlock.

S3012: The external unlock apparatus contrasts the obtained unlockpassword with an unlock password stored in the external unlockapparatus, and if a contrast result is matched, executes S3013, or if acontrast result is unmatched, executes S3014.

S3013: The external unlock apparatus sends the stored unlock password tothe mobile terminal, so that the mobile terminal performs unlockaccording to the unlock password sent by the external unlock apparatus.

S3014: The external unlock apparatus replaces the stored unlock passwordwith the obtained unlock password, and sends the obtained unlockpassword to the mobile terminal, so that the mobile terminal performsunlock according to the unlock password sent by the external unlockapparatus.

In the mobile terminal unlock method described in this embodiment of thepresent invention, a first password may be generated according to atrigger signal for unlock, an unlock signal is generated according tothe first password, an unlock password that is obtained by means ofparsing by a user according to the unlock signal is obtained, match isperformed to verify whether the unlock password is correct, and if theunlock password is correct, a password lock is unlocked, or if theunlock password is incorrect, unlock is performed again. In addition,according to the unlock method described in this embodiment of thepresent invention, a location of a mobile phone can be tracked accordingto obtained positioning data of the mobile phone. The mobile terminalunlock method described in this embodiment improves a mobile terminaluser experience and mobile terminal security, has a wide application,and better protects privacy security of a mobile terminal user andmobile terminal security. Referring to FIG. 4, FIG. 4 is a schematicstructural diagram of Embodiment 4 of a mobile terminal according to anembodiment of the present invention. The mobile terminal in thisembodiment includes a central processing unit 400, a trigger unit 410, aresponse unit 420, and an unlock unit 430.

The central processing unit 400 is configured to control the triggerunit 410, the response unit 420, and the unlock unit 430.

The trigger unit 410 is configured to: obtain a trigger signal forunlock, and generate a first password according to the trigger signal.

In specific implementation, the mobile terminal described in thisembodiment may use the mobile terminal unlock method described in theforegoing embodiments. The mobile terminal unlock method described inthe foregoing embodiments not only can be applied to mobile terminalscreen unlock described in this embodiment, but also can be applied toan unlock function of a mobile terminal application described in thisembodiment, such as unlock of an encrypted file in the mobile terminaldescribed in this embodiment. The following details the mobile terminalin this embodiment by using an example in which screen unlock of amobile phone is used as an application instance of the mobile terminaldescribed in this embodiment. The trigger signal for unlock in thisembodiment may be a trigger signal that is sent by touching a mobilephone screen by a mobile phone user when the mobile phone screen of atouchscreen mobile phone is in a lockout state, may be a trigger signalthat is sent by pressing an unlock button of a mobile phone by a mobilephone user when a mobile phone screen of the non-touchscreen mobilephone is in a lockout state, or may be a trigger signal sent in anotherform for triggering unlock of a mobile phone screen. The foregoingtrigger signal sending manners are merely examples rather thanexhaustive descriptions, and this embodiment includes but is not limitedto the foregoing trigger signal sending manners. After obtaining atrigger signal for unlock, the trigger unit 410 randomly generates apassword. A first password is generated after the trigger unit 10obtains a trigger signal, and the generated first password is an instantunlock password of a mobile phone. A password lock can be unlocked onlywhen an unlock password entered by a user is consistent with the firstpassword. A different first password may be generated each time afterthe trigger unit 410 obtains a trigger signal, that is, an unlockpassword of the mobile phone is generated randomly and changesconstantly. In this unlock method, a first password serves as an unlockpassword of a mobile phone, and a mobile phone password can beeffectively protected from being identified and cracked, so that privacysecurity of a mobile phone user is better protected. For example, when ascreen of a touchscreen mobile phone of a mobile phone user is in alockout state, if the user wants to make a phone call, the user needs tounlock a password lock of the mobile phone screen, and enter a standbyscreen of the mobile phone to make a phone call. In this case, if themobile phone user touches the mobile phone screen, the trigger unit 410obtains a trigger signal for unlock. After obtaining the trigger signalfor unlock, the mobile phone generates a first password, for example,“210”. The first password “210” is an unlock password of the mobilephone at this time. If the user wants to unlock the password lock of themobile phone screen, “210” needs to be entered for unlock. If the mobilephone user does not want to make a phone call at the moment and does notenter a password to unlock the mobile phone screen, the user needs totouch the mobile phone screen again if the user wants to unlock themobile phone screen next time. After obtaining a trigger signal, themobile phone generates a new first password, for example, “220”. “220”is an unlock password of the mobile phone at this time. A password lockof the mobile phone screen can be unlocked only after the mobile phoneuser enters “220”.

The response unit 420 is configured to: generate a corresponding unlocksignal according to a preset correspondence between the unlock signaland the first password and with reference to the first password, andsend the corresponding unlock signal.

In specific implementation, the mobile phone user may preset aone-to-one correspondence between the unlock signal and the firstpassword according to user preference, and store the correspondence tothe mobile phone. After generating the first password by the triggerunit 410, the response unit 420 responds according to thecorrespondence, preset by the user, between the unlock signal and thefirst password, and sends the corresponding unlock signal. In specificimplementation, the first password may contain a character such as adigit, a letter, or a symbol. The first password may be in multiplecombination forms, for example, may be one or more digits, one or moreletters, or may be a combination of a digit and a letter, a combinationof a digit and a symbol, or a combination of a letter and a symbol. Themobile phone user may preset a vibration mode corresponding to thedigit, letter or symbol, including a vibration mode such as a vibrationfrequency, a vibration intensity, vibration duration, or a vibrationcombination form. The first password that contains these characterscorresponds to a corresponding vibration mode. If the response unit 420obtains the first password sent by the trigger unit 410, the mobilephone may generate a corresponding vibration signal according to thecorrespondence, preset by the mobile phone user, between the firstpassword and a mobile phone vibration mode. The mobile phone user maydetermine and parse out a corresponding password according to thevibration signal of the mobile phone to obtain the unlock password ofthe mobile phone at this time. For example, the following Table 5 listscorrespondences that can be preset by the mobile phone user and that arebetween a composition character of a first password of the mobile phoneand a mobile phone vibration mode:

TABLE 5 Character Vibration mode 0 Weak vibration for 200 ms 1 Weakvibration for 100 ms and strong vibration for 100 ms 2 Strong vibrationfor 200 ms and weak vibration for 100 ms . . . . . .

The correspondences, listed in Table 5, between a composition characterof a first password of the mobile phone and a mobile phone vibrationmode are merely some examples rather than exhaustive descriptions, andthis embodiment includes but is not limited to the correspondences,listed in the foregoing table, between a composition character of afirst password of the mobile phone and a mobile phone vibration mode.The mobile phone user may set different correspondences according touser preference.

Correspondences between a first password for unlocking the mobile phoneand a mobile phone vibration mode can be obtained according to Table 5,as listed below in Table 6:

TABLE 6 First password Vibration mode 01 Weak vibration for 200 ms, andweak vibration for 100 ms and strong vibration for 100 ms 212 Strongvibration for 200 ms and weak vibration for 100 ms, weak vibration for100 ms and strong vibration for 100 ms, and strong vibration for 200 msand weak vibration for 100 ms 220 Strong vibration for 200 ms and weakvibration for 100 ms, strong vibration for 200 ms and weak vibration for100 ms, and weak vibration for 200 ms . . . . . .

The correspondences, listed in Table 6, between a first password forunlocking the mobile phone and a mobile phone vibration mode are merelysome examples rather than exhaustive descriptions, and this embodimentincludes but is not limited to the correspondences, listed in theforegoing table, between a first password for unlocking the mobile phoneand a mobile phone vibration mode. It may be learnt from Table 6 that,when a first password generated by the mobile phone is “220”, the mobilephone may send a corresponding vibration signal “strong vibration for200 ms and weak vibration for 100 ms, strong vibration for 200 ms andweak vibration for 100 ms, and weak vibration for 200 ms” according tothe correspondences listed in Table 6. According to the mobile phonevibration signal felt by a hand of the user, the user may determine thefirst password of the mobile phone, that is, the unlock password of themobile phone at this time. Alternatively, the user may set a timeinterval for mobile phone vibration according to user preference orrecognition habits, so as to better determine and parse out the unlockpassword of the mobile phone. For example, the user may set a vibrationtime interval corresponding to characters that form the first passwordto 50 ms for a mobile phone vibration mode; when the first passwordgenerated by the mobile phone is “220”, the mobile phone sends acorresponding vibration signal according to the correspondences listedin Table 6. The mobile phone first sends a vibration signal “strongvibration for 200 ms and weak vibration for 100 ms”; after an intervalof 50 ms, the mobile phone sends a vibration signal “strong vibrationfor 200 ms and weak vibration for 100 ms”; and after an interval of 50ms, the mobile phone sends a vibration signal “weak vibration for 200ms”. That is, the mobile phone first vibrates strongly for 200 ms andweakly for 100 ms; after 50 ms, vibrates strongly for 200 ms and weaklyfor 100 ms again; and after 50 ms, vibrates weakly for 200 ms. Themobile phone user determines, according to the vibration signal felt bya hand, that the unlock password of the mobile phone at this time is“220”.

The unlock unit 430 is configured to: obtain an unlock password that isobtained by means of parsing by a user according to the unlock signal;match the unlock password with the first password; determine whether theunlock password is consistent with the first password; and if adetermining result is yes, unlock a password lock; or if a determiningresult is no, instruct the trigger unit 410 to obtain a trigger signalfor unlock again.

In specific implementation, the mobile phone user may determine andparse out the unlock password of the mobile phone according to themobile phone vibration mode. After parsing out the unlock password ofthe mobile phone, the mobile phone user may enter the unlock passwordthat is obtained by means of parsing to the mobile phone for unlock.After obtaining the unlock password that is obtained by the mobile phoneuser by means of parsing according to the unlock signal, the mobilephone matches the obtained unlock password with the first passwordautomatically generated by the mobile phone, and determines whether theunlock password entered by the mobile phone user is consistent with thefirst password automatically generated by the mobile phone. If theunlock password entered by the mobile phone user is consistent with thefirst password generated by the mobile phone, the password lock isunlocked. If the unlock password entered by the mobile phone user isinconsistent with the first password generated by the mobile phone, atrigger signal for unlock is obtained again and a new first password isgenerated, and a new round of unlock processing starts. The user mayparse out a first password again, and enter an unlock password forunlock again. For example, the first password generated by the mobilephone for the first time is “220”, and the mobile phone parses out anddetermines the password mistakenly and enters an unlock password “210”.The password “210” obtained by the mobile phone is inconsistent with thefirst password “220” generated by the mobile phone, and the mobile phonesends an entry error signal. After learning a password entry error, themobile phone user touches the mobile phone screen again. The mobilephone obtains a trigger signal for unlock again, generates a new firstpassword “211”, and sends a corresponding unlock signal. The mobilephone user obtains, again by means of parsing according to the unlocksignal sent by the mobile phone, the unlock password “211”, and entersthe unlock password “211”. After obtaining the unlock password “211”,the mobile phone matches the unlock password with the first password. Ifthe mobile phone determines that the unlock password is correct, thepassword lock of the screen is unlocked, and a standby screen of themobile phone is displayed.

In this embodiment of the present invention, a first password may begenerated according to a trigger signal for unlock, an unlock signal isgenerated according to the first password, an unlock password that isobtained by means of parsing by a user according to the unlock signal isobtained, match is performed to verify whether the unlock password iscorrect, and if the unlock password is correct, a password lock isunlocked, or if the unlock password is incorrect, unlock is performedagain. The mobile terminal described in this embodiment improves mobileterminal user experience and mobile terminal security, has a wideapplication, and better protects privacy security of a mobile terminaluser.

Referring to FIG. 5, FIG. 5 is a schematic structural diagram ofEmbodiment 5 of a mobile terminal according to an embodiment of thepresent invention. The mobile terminal in this embodiment includes acentral processing unit 500, a trigger unit 510, a response unit 520, anunlock unit 530, and a lockout unit 540.

The central processing unit 500 is configured to control the triggerunit 510, the response unit 520, the unlock unit 530, and the lockoutunit 540.

The trigger unit 510 is configured to: obtain a trigger signal forunlock, and generate a first password according to the trigger signal.

In specific implementation, the mobile terminal described in thisembodiment may use the mobile terminal unlock method described in theforegoing embodiments. The mobile terminal unlock method described inthe foregoing embodiments not only can be applied to mobile terminalscreen unlock described in this embodiment, but also can be applied toan unlock function of a mobile terminal application described in thisembodiment, such as unlock of an encrypted file in the mobile terminaldescribed in this embodiment. The following details the mobile terminalin this embodiment by using an example in which screen unlock of amobile phone is used as an application instance of the mobile terminaldescribed in this embodiment. The trigger signal for unlock in thisembodiment may be a trigger signal that is sent by touching a mobilephone screen by a mobile phone user when the mobile phone screen of atouchscreen mobile phone is in a lockout state, may be a trigger signalthat is sent by pressing an unlock button of a mobile phone by a mobilephone user when a mobile phone screen of the non-touchscreen mobilephone is in a lockout state, or may be a trigger signal sent in anotherform for triggering unlock of a mobile phone screen. The foregoingtrigger signal sending manners are merely examples rather thanexhaustive descriptions, and this embodiment includes but is not limitedto the foregoing trigger signal sending manners. After obtaining atrigger signal for unlock, the trigger unit 510 randomly generates apassword. A first password is generated after the trigger unit 510obtains a trigger signal, and the generated first password is an instantunlock password of a mobile phone. A password lock can be unlocked onlywhen an unlock password entered by a user is consistent with the firstpassword. A different first password may be generated each time afterthe trigger unit 510 obtains a trigger signal, that is, an unlockpassword of the mobile phone is generated randomly and changesconstantly. In this unlock method, a first password serves as an unlockpassword of a mobile phone, and a mobile phone password can beeffectively protected from being identified and cracked, so that privacysecurity of a mobile phone user is better protected. For example, when ascreen of a touchscreen mobile phone of a mobile phone user is in alockout state, if the user wants to make a phone call, the user needs tounlock a password lock of the mobile phone screen, and enter a standbyscreen of the mobile phone to make a phone call. In this case, if themobile phone user touches the mobile phone screen, the trigger unit 510obtains a trigger signal for unlock. After obtaining the trigger signalfor unlock, the mobile phone generates a first password, for example,“210”. The first password “210” is an unlock password of the mobilephone at this time. If the user wants to unlock the password lock of themobile phone screen, “210” needs to be entered for unlock. If the mobilephone user does not want to make a phone call at the moment and does notenter a password to unlock the mobile phone screen, the user needs totouch the mobile phone screen again if the user wants to unlock themobile phone screen next time. After obtaining a trigger signal, themobile phone generates a new first password, for example, “220”. “220”is an unlock password of the mobile phone at this time. A password lockof the mobile phone screen can be unlocked only after the mobile phoneuser enters “220”.

The response unit 520 is configured to: generate a corresponding unlocksignal according to a preset correspondence between the unlock signaland the first password and with reference to the first password, andsend the corresponding unlock signal.

In specific implementation, the mobile phone user may preset aone-to-one correspondence between the unlock signal and the firstpassword according to user preference, and store the correspondence tothe mobile phone. After generating the first password by the triggerunit 510, the response unit 520 responds according to thecorrespondence, preset by the user, between the unlock signal and thefirst password, and sends the corresponding unlock signal. In specificimplementation, the first password may contain a character such as adigit, a letter, or a symbol. The first password may be in multiplecombination forms, for example, may be one or more digits, one or moreletters, or may be a combination of a digit and a letter, a combinationof a digit and a symbol, or a combination of a letter and a symbol. Themobile phone user may preset a vibration mode corresponding to thedigit, letter or symbol, including a vibration mode such as a vibrationfrequency, a vibration intensity, vibration duration, or a vibrationcombination form. The first password that contains these characterscorresponds to a corresponding vibration mode. If the response unit 520obtains the first password sent by the trigger unit 510, the mobilephone may generate a corresponding vibration signal according to thecorrespondence, preset by the mobile phone user, between the firstpassword and a mobile phone vibration mode. The mobile phone user maydetermine and parse out a corresponding password according to thevibration signal of the mobile phone to obtain the unlock password ofthe mobile phone at this time. For example, the following Table 7 listscorrespondences that can be preset by the mobile phone user and that arebetween a composition character of a first password of the mobile phoneand a mobile phone vibration mode:

TABLE 7 Character Vibration mode 0 Weak vibration for 200 ms 1 Weakvibration for 100 ms and strong vibration for 100 ms 2 Strong vibrationfor 200 ms and weak vibration for 100 ms . . . . . .

The correspondences, listed in Table 7, between a composition characterof a first password of the mobile phone and a mobile phone vibrationmode are merely some examples rather than exhaustive descriptions, andthis embodiment includes but is not limited to the correspondences,listed in the foregoing table, between a composition character of afirst password of the mobile phone and a mobile phone vibration mode.The mobile phone user may set different correspondences according touser preference.

Correspondences between a first password for unlocking the mobile phoneand a mobile phone vibration mode can be obtained according to Table 7,as listed below in Table 8:

TABLE 8 First password Vibration mode 01 Weak vibration for 200 ms, andweak vibration for 100 ms and strong vibration for 100 ms 212 Strongvibration for 200 ms and weak vibration for 100 ms, weak vibration for100 ms and strong vibration for 100 ms, and strong vibration for 200 msand weak vibration for 100 ms 220 Strong vibration for 200 ms and weakvibration for 100 ms, strong vibration for 200 ms and weak vibration for100 ms, and weak vibration for 200 ms . . . . . .

The correspondences, listed in Table 8, between a first password forunlocking the mobile phone and a mobile phone vibration mode are merelysome examples rather than exhaustive descriptions, and this embodimentincludes but is not limited to the correspondences, listed in theforegoing table, between a first password for unlocking the mobile phoneand a mobile phone vibration mode. It may be learnt from Table 6 that,when a first password generated by the mobile phone is “220”, the mobilephone may send a corresponding vibration signal “strong vibration for200 ms and weak vibration for 100 ms, strong vibration for 200 ms andweak vibration for 100 ms, and weak vibration for 200 ms” according tothe correspondences listed in Table 8. According to the mobile phonevibration signal felt by a hand of the user, the user may determine thefirst password of the mobile phone, that is, the unlock password of themobile phone at this time. Alternatively, the user may set a timeinterval for mobile phone vibration according to user preference orrecognition habits, so as to better determine and parse out the unlockpassword of the mobile phone. For example, the user may set a vibrationtime interval corresponding to characters that form the first passwordto 50 ms for a mobile phone vibration mode; when the first passwordgenerated by the mobile phone is “220”, the mobile phone sends acorresponding vibration signal according to the correspondences listedin Table 8. The mobile phone first sends a vibration signal “strongvibration for 200 ms and weak vibration for 100 ms”; after an intervalof 50 ms, the mobile phone sends a vibration signal “strong vibrationfor 200 ms and weak vibration for 100 ms”; and after an interval of 50ms, the mobile phone sends a vibration signal “weak vibration for 200ms”. That is, the mobile phone first vibrates strongly for 200 ms andweakly for 100 ms; after 50 ms, vibrates strongly for 200 ms and weaklyfor 100 ms again; and after 50 ms, vibrates weakly for 200 ms. Themobile phone user determines, according to the vibration signal felt bya hand, that the unlock password of the mobile phone at this time is“220”.

The unlock unit 530 is configured to: obtain an unlock password that isobtained by means of parsing by a user according to the unlock signal;match the unlock password with the first password; determine whether theunlock password is consistent with the first password; and if adetermining result is yes, unlock a password lock; or if a determiningresult is no, instruct the trigger unit to obtain a trigger signal forunlock again.

The lockout unit 540 is configured to: if a quantity of times ofobtaining a trigger signal for unlock exceeds a maximum quantity ofunlock error times, enable a global positioning system GPS, obtainpositioning data of the mobile terminal, send the positioning data to amailbox bound to the mobile terminal, and stop obtaining a triggersignal within a specified time.

In specific implementation, the mobile phone user may determine andparse out the unlock password of the mobile phone according to themobile phone vibration mode. After parsing out the unlock password ofthe mobile phone, the mobile phone user may enter the unlock passwordthat is obtained by means of parsing to the mobile phone for unlock.After obtaining the unlock password that is obtained by the mobile phoneuser by means of parsing according to the unlock signal, the mobilephone matches the obtained unlock password with the first passwordautomatically generated by the mobile phone, and determines whether theunlock password entered by the mobile phone user is consistent with thefirst password automatically generated by the mobile phone. If theunlock password entered by the mobile phone user is consistent with thefirst password generated by the mobile phone, the password lock isunlocked. If the unlock password entered by the mobile phone user isinconsistent with the first password generated by the mobile phone, itis further determined whether the quantity of obtaining a trigger signalfor unlock is less than the maximum quantity of unlock error times. Ifthe quantity of obtaining a trigger signal for unlock is less than themaximum quantity of unlock error times, a trigger signal for unlock isobtained again and a new first password is generated, and a new round ofunlock processing starts. The user may parse out a first password again,and enter an unlock password for unlock again. If the quantity ofobtaining a trigger signal for unlock is equal to or exceeds the maximumquantity of unlock error times, that is, unlock performed by the mobilephone user fails, the global positioning system GPS is enabled, thepositioning data of the mobile phone is obtained, the obtainedpositioning data of the mobile phone is sent to the mailbox bound to themobile phone, and a trigger signal for unlock is no longer obtainedwithin a specified time. The maximum quantity of unlock error times is atotal quantity of times that the mobile phone user is allowed to enteran incorrect password and that is preset by the mobile phone user, thatis, a total quantity of consecutive times that the mobile phone user isallowed to enter an incorrect password. The specified time mentioned in“a trigger signal for unlock is no longer obtained within a specifiedtime” is a time for which the mobile terminal is automatically lockedafter an unlock failure and that is preset by a mobile phone user, thatis, duration for which the mobile phone is automatically locked afterthe mobile phone user fails to perform unlock successfully for thepreset maximum quantity of unlock error times. Within the lockout time,the mobile phone no longer allows an unlock attempt by the mobile phoneuser. Therefore, within the lockout time, the mobile phone user cannotunlock the screen to use the mobile phone. In specific implementation,the mobile phone user may preset a maximum quantity of unlock errortimes and a lockout time of the mobile phone according to userpreference. The mobile phone user may further bind the mobile phone ofthe user to a mailbox of the user. If unlock performed by the mobilephone user fails, the mobile phone sends the positioning data of themobile phone to the mailbox bound to the mobile phone. After obtaininginformation about the positioning data of the mobile phone from themailbox of the mobile phone user, the mobile phone user may track alocation of the mobile phone according to the information about thepositioning data. If the mobile phone is lost or stolen, a location ofthe mobile phone can be tracked according to the information about thepositioning data, to regain the lost mobile phone.

The following details a process of completing unlock of a mobile phonescreen by using a simple example, where such unlock is completed by amobile phone by matching an unlock password entered by a mobile phoneuser with a first password automatically generated by the mobile phone.For example, when a generated first password is “220” after a mobilephone obtains a trigger signal for unlock for the first time, a mobilephone user obtains an unlock password “220” by means of parsingaccording to an unlock signal sent by the mobile phone, and enter theunlock password “220” to the mobile phone for unlock. The mobile phonematches the unlock password entered by the mobile phone user with afirst password automatically generated by the mobile phone. If themobile phone determines that the unlock password is consistent with thefirst password, a password lock of a mobile phone screen is unlocked,and a standby screen of the mobile phone is displayed. If the mobilephone user parses out and determines the password mistakenly accordingto the unlock signal sent by the mobile phone and enters an unlockpassword “210”, the password “210” obtained by the mobile phone isinconsistent with the first password “220” generated by the mobilephone, and an entry error signal is sent. After learning a passwordentry error, the mobile phone user may touch the mobile phone screenagain. The mobile phone obtains a trigger signal for unlock again,generates a new first password “211”, and sends a corresponding unlocksignal. The mobile phone user obtains, again by means of parsingaccording to the unlock signal sent by the mobile phone, the unlockpassword “211”, and enters the unlock password “211”. After obtainingthe unlock password “211”, the mobile phone matches the unlock passwordwith the first password. If the mobile phone determines that the unlockpassword is correct, the password lock of the screen is unlocked, and astandby screen of the mobile phone is displayed. If the mobile phoneuser parses out and determines the password mistakenly and enters anincorrect password, the mobile phone user may touch the mobile phonescreen again, and perform unlock again. It is assumed that the maximumquantity of unlock error times preset by the mobile phone user is four,and the lockout time is one minute. If the mobile phone user mistakenlydetermines the password for four times and enters an incorrect passwordfor four times, the mobile phone is automatically locked for one minute,and the mobile phone user can continue to attempt to perform unlock onlyafter one minute.

In this embodiment of the present invention, a first password may begenerated according to a trigger signal for unlock, an unlock signal isgenerated according to the first password, an unlock password that isobtained by means of parsing by a user according to the unlock signal isobtained, match is performed to verify whether the unlock password iscorrect, and if the unlock password is correct, a password lock isunlocked, or if the unlock password is incorrect, unlock is performedagain. In addition, according to the unlock method described in thisembodiment of the present invention, a location of a mobile phone can betracked according to obtained positioning data of the mobile phone. Themobile terminal unlock method described in this embodiment improves amobile terminal user experience and mobile terminal security, has a wideapplication, and better protects privacy security of a mobile terminaluser and mobile terminal security.

Referring to FIG. 6, FIG. 6 is a schematic structural diagram of anembodiment of an external unlock apparatus according to an embodiment ofthe present invention. The external unlock apparatus in this embodimentincludes a central processing unit 610 and an interface unit 620 that isconnected to the central processing unit 610, where the interface unit620 may be connected to a mobile terminal.

The interface unit 620 is configured to: after it is detected that auser connects the external unlock apparatus to the mobile terminal,obtain an international mobile equipment identity (IMEI) of the mobileterminal, and a six-place password entered by the user.

The central processing unit 610 is configured to: concatenate theinternational mobile equipment identity and the six-place password intoa twenty-one place verification code; contrast the twenty-one placeverification code with a preset verification code stored in the externalunlock apparatus, and if the two are consistent, instruct the interfaceunit to obtain an unlock password of the mobile terminal from the mobileterminal; and contrast the obtained unlock password with an unlockpassword stored in the external unlock apparatus, and if a contrastresult is matched, instruct the interface unit to send the stored unlockpassword to the mobile terminal, so that the mobile terminal performsunlock according to the unlock password sent by the external unlockapparatus; or if a contrast result is unmatched, replace the storedunlock password with the obtained unlock password, and instruct theinterface unit to send the obtained unlock password to the mobileterminal, so that the mobile terminal performs unlock according to theunlock password sent by the external unlock apparatus.

In this embodiment of the present invention, an external unlockapparatus may be used to perform unlock. The mobile terminal unlockmethod described in this embodiment improves a mobile terminal userexperience and mobile terminal security, has a wide application, andbetter protects privacy security of a mobile terminal user and mobileterminal security.

Referring to FIG. 7, FIG. 7 is a schematic structural diagram of anembodiment of an unlock system according to an embodiment of the presentinvention. The unlock system in this embodiment includes a mobileterminal 710 and an external unlock apparatus 720.

The mobile terminal 710 is configured to obtain a trigger signal forunlock; generate a first password according to the trigger signal;generate a corresponding unlock signal according to a presetcorrespondence between the unlock signal and the first password and withreference to the first password, and send the corresponding unlocksignal; obtain an unlock password that is obtained by means of parsingby a user according to the unlock signal; match the unlock password withthe first password; determine whether the unlock password is consistentwith the first password; if a determining result is yes, unlock apassword lock; or if a determining result is no, instruct to obtain atrigger signal for unlock again; and if a quantity of times of obtaininga trigger signal for unlock exceeds a maximum quantity of unlock errortimes, prompt the user to use the external unlock apparatus 720 toobtain a password, where the maximum quantity of unlock error times is atotal quantity of times that the mobile terminal user is allowed toenter an incorrect password and that is preset by the mobile terminaluser.

The external unlock apparatus 720 is configured to: after the userconnects the external unlock apparatus to the mobile terminal asprompted, obtain an international mobile equipment identity (IMEI) ofthe mobile terminal, and prompt the user to enter a six-place password;concatenate the international mobile equipment identity and thesix-place password into a twenty-one place verification code, andcontrast the twenty-one place verification code with a presetverification code stored in the external unlock apparatus; if the twoare consistent, obtain the password of the mobile terminal from themobile terminal; contrast the obtained password with a password storedin the external unlock apparatus; and if a contrast result is matched,send the stored password to the mobile terminal, so that the mobileterminal performs unlock according to the password sent by the externalunlock apparatus; or if a contrast result is unmatched, replace thestored password with the obtained password, and send the obtainedpassword to the mobile terminal, so that the mobile terminal performsunlock according to the password sent by the external unlock apparatus.

In this embodiment of the present invention, a first password may begenerated according to a trigger signal for unlock, an unlock signal isgenerated according to the first password, an unlock password that isobtained by means of parsing by a user according to the unlock signal isobtained, match is performed to verify whether the unlock password iscorrect, and if the unlock password is correct, a password lock isunlocked, or if the unlock password is incorrect, unlock is performedagain. In addition, according to the unlock method described in thisembodiment of the present invention, a location of a mobile phone can betracked according to obtained positioning data of the mobile phone. Themobile terminal unlock method described in this embodiment improves amobile terminal user experience and mobile terminal security, has a wideapplication, and better protects privacy security of a mobile terminaluser and mobile terminal security.

Persons of ordinary skill in the art should understand that all or apart of the steps of the method according to the embodiments of thepresent invention may be implemented by a program instructing relevanthardware. The program may be stored in a computer readable storagemedium. When the program is run, the steps of the method according tothe embodiments of the present invention are performed. The storagemedium may be any medium that is capable of storing program codes, suchas a Read Only Memory (ROM), a Random Access Memory (RAM), a magneticdisk, and an optical disk.

Finally, it should be noted that the above embodiments are merelyprovided for describing the technical solutions of the presentinvention, but not intended to limit the present invention. It should beunderstood by persons of ordinary skill in the art that although thepresent invention has been described in detail with reference to theforegoing embodiments, modifications can be made to the technicalsolutions described in the foregoing embodiments, or equivalentreplacements can be made to some technical features in the technicalsolutions, as long as such modifications or replacements do not causethe essence of corresponding technical solutions to depart from thespirit and scope of the present invention.

What is claimed is:
 1. An unlock system comprising: a mobile terminalwith unlock function and an external unlock apparatus, wherein themobile terminal comprises: a central processing unit, a trigger unit, aresponse unit and an unlock unit, wherein: the central processing unitis configured to control the trigger unit, the response unit, and theunlock unit; the trigger unit is configured to obtain a trigger signalfor unlock, and generate a first password according to the triggersignal; the response unit is configured to generate a correspondingunlock signal according to a preset correspondence between the unlocksignal and the first password and with reference to the first password,and send the corresponding unlock signal, wherein, when generating thefirst password, the mobile terminal generates a corresponding vibrationsignal according to a preset correspondence between the vibration signaland the first password and with reference to the first password, thefirst password containing a character, wherein a mobile terminal userpresets a vibration mode in which a particular vibration corresponds tocharacters that form the first password, wherein according to the mobilevibration signal received by the user, the user determines the firstpassword of the mobile terminal that is the unlock password of themobile terminal; the unlock unit is configured to: obtain an unlockpassword that is obtained by means of parsing by the user according tothe vibration signal sent by the mobile terminal, wherein after parsingout the unlock password of the mobile terminal according to thevibration signal sent by the mobile terminal, the mobile terminal userdetermines at least one character to be entered for the unlock password;match the unlock password with the first password; determine whether theunlock password is consistent with the first password; and when adetermining result is yes, unlock a password lock; or when a determiningresult is no, instruct the trigger unit to obtain a trigger signal forunlock again; and when a quantity of times of obtaining a trigger signalfor unlock exceeds a maximum quantity of unlock error times, prompt theuser to use the external unlock apparatus to obtain a password, whereinthe maximum quantity of unlock error times is a total quantity of timesthat the mobile terminal user is allowed to enter an incorrect passwordand that is preset by the mobile terminal user; and wherein the externalunlock apparatus comprises a central processing unit and an interfaceunit that is connected to the central processing unit, and the interfaceunit is connected to the mobile terminal, wherein the interface unit isconfigured to: after it is detected that the user connects the externalunlock apparatus to the mobile terminal, obtain an international mobileequipment identity of the mobile terminal and a six-place passwordentered by the user; and the central processing unit of the externalunlock apparatus is configured to: concatenate the international mobileequipment identity and the six-place password into a twenty-one placeverification code; contrast the twenty-one place verification code witha preset verification code stored in the external unlock apparatus, andwhen the two are consistent, instruct the interface unit to obtain theunlock password of the mobile terminal from the mobile terminal; andcontrast the obtained unlock password with an unlock password stored inthe external unlock apparatus, and when a contrast result is matched,instruct the interface unit to send the stored unlock password to themobile terminal, so that the mobile terminal performs unlock accordingto the unlock password sent by the external unlock apparatus; or when acontrast result is unmatched, replace the stored unlock password withthe obtained unlock password, and instruct the interface unit to sendthe obtained unlock password to the mobile terminal, so that the mobileterminal performs unlock according to the unlock password sent by theexternal unlock apparatus.